package top.infopub.mgr.bpa.domain;

import org.apache.commons.lang3.StringUtils;
import top.infopub.enums.bpa.CostTypesEnum;

import java.math.BigDecimal;

public class OtherConInventoryDomain {

    /*pk*/
    private String id;
    /*项目编码*/
    private String proCode;
    /*项目名称*/
    private String proName;
    /*合同名称*/
    private String contractName;
    /*费用类型*/
    private String costTypes;
    /*合同总价*/
    private BigDecimal contractTotalPrice;
    /*项目负责人*/
    private String projectLeader;
    /*状态*/
    private String processStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getCostTypes() {
        return costTypes;
    }

    public void setCostTypes(String costTypes) {
        this.costTypes = costTypes;
        if (StringUtils.isNotBlank(costTypes)) {
            CostTypesEnum ppdt = CostTypesEnum.getByCode(costTypes);
            if (ppdt != null) {
                setCostTypes(ppdt.getName());
            }
        }
    }

    public BigDecimal getContractTotalPrice() {
        return contractTotalPrice;
    }

    public void setContractTotalPrice(BigDecimal contractTotalPrice) {
        this.contractTotalPrice = contractTotalPrice;
    }

    public String getProjectLeader() {
        return projectLeader;
    }

    public void setProjectLeader(String projectLeader) {
        this.projectLeader = projectLeader;
    }

    public String getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(String processStatus) {
        this.processStatus = processStatus;
    }
}
